<?php
/*
文件名:product.edit.html
编译日期:2013-08-14 14:14:06
文件大小:2.118KB
作者:边缘狂人, QQ:124181646*/
?><?php include(APP_PATH."data/compile/admin^header.inc.html"); ?>


<script>
$().ready(function(){
	$('#gettag').click(function(){
		title = $('[name="title"]').val();
		$.post('<?php echo __smarty__url(array('m'=>gettag)); ?>',{'title':title},function(data){
			$('[name="tag"]').val(data);
		})
	});
});
</script>



<form method="post" action="" id="myform" name="listForm"  onSubmit="return Validator.Validate(this,2)">

<div class="list-div" id="listDiv">
  <table cellpadding="3" cellspacing="1">
    <tr>
        <th style="text-align:left;" colspan="2"><?php echo $lang["comm"]["edit"];?>新闻</th>            	
    </tr>

	
	<tr>
        <td>新闻分类</td>
        <td><?php $this->html_radios(array('name'=>"nav_id",'value'=>$nav_id,'options'=>$navs)); ?></td>
    </tr>
   
	<tr>
        <td>标题</td>
        <td><input type="text" name="title" value="<?php echo $rs["title"];?>" class="input" /></td>
    </tr>
	
	<tr>
        <td>关键字</td>
        <td><input type="text" name="keyword" class="input" value="<?php echo $rs["keyword"];?>" /> 用逗号分隔</td>
    </tr>
	<tr>
        <td>描述</td>
        <td><textarea name="desc" style='width:500px;height:100px;'><?php echo $rs["desc"];?></textarea></td>
    </tr>
	<tr>
        <td>标签</td>
        <td>
		<textarea name="tag" style='width:500px;height:100px;'><?php echo $rs["tag"];?></textarea>
		
		 <input type='button' value='自动获取' id="gettag"></td>
    </tr>
	<tr>
        <td>内容</td>
        <td><?php echo $fck;?></td>
    </tr>

  </table>  
 
</div>
 <center><input  class="button" id="submit" formid="myform" value="<?php echo $lang["comm"]["submit"];?>" type="submit"/>&nbsp;
     <input class="button" value="<?php echo $lang["comm"]["cancel"];?>" type="button" onclick="history.back()"/>&nbsp;
     </center>    
	 
	  <input value="doedit" type="hidden" name="m"/>
	  <input value="<?php echo $rs["id"];?>" type="hidden" name="id"/>
	  <input value="<?php echo $_SERVER["REFERER"];?>" type="hidden" name="ref"/>
</form>
  


<?php include(APP_PATH."data/compile/admin^footer.inc.html"); ?>